package oop.ex1.filters;

/**
 * an abstract class that all the size dependent filter inherits from
 * @author danalmog
 * @author danielshalev
 */

public abstract class SizeDependent extends Filters {
	protected static final int SIZE_CONVERTER = 128;
	protected double size;
	protected boolean hasNot;
	
	/**
	 * construct a new SizeDependent filter
	 * @param size the size to compare to
	 * @param hasNot indicates if the filter is a NOT filter
	 */
	public SizeDependent(String size,boolean hasNot){
		this.size=Double.valueOf(size);
		this.hasNot=hasNot;
	}
	
	/**
	 * a getter than return the size to compare to
	 * @return the size to compare to
	 */
	public double getSize(){
		return size;
	}
}
